import { message } from "antd"

export const isLoginStatus = () => {
    const isLogin = localStorage.getItem('isLogin') === 'true'
    if (isLogin) {
        return true
    } else {
        message.warning('请先登录')
        return false
    }
}